package com.fjec.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 014.代金卷表
 * </p>
 *
 * @author admin
 * @since 2020-09-07
 */
@TableName("info_voucher")
public class InfoVoucher implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 商户类型 2=果农
3=分拣厂
4=农资厂
5=包装物厂
6=采购商
     */
    @TableField("BusiType")
    private Integer busiType;

    /**
     * 发行商户Id
     */
    @TableField("BusiId")
    private Long busiId;

    /**
     * 面值
     */
    @TableField("Deno")
    private Long deno;

    /**
     * 代金卷类型 1=店铺满减
2=指定商品
     */
    @TableField("Category")
    private Integer category;

    /**
     * 商品SkuId 当代金卷类型=2时，此字段保存指定商品Id
     */
    @TableField("SkuId")
    private Long skuId;

    /**
     * 使用条件类型 当代金卷类型=2时
1=购买数量
2=购买金额
     */
    @TableField("CondType")
    private Integer condType;

    /**
     * 使用条件 大于此数字可以使用
     */
    @TableField("UseCond")
    private Integer useCond;

    /**
     * 起始日期
     */
    @TableField("StartTime")
    private LocalDate startTime;

    /**
     * 截止日期
     */
    @TableField("EndTime")
    private LocalDate endTime;

    /**
     * 发放最大数量
     */
    @TableField("MaxNum")
    private Integer maxNum;

    /**
     * 删除标记
     */
    @TableField("DelFlag")
    private Integer delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getBusiType() {
        return busiType;
    }

    public void setBusiType(Integer busiType) {
        this.busiType = busiType;
    }
    public Long getBusiId() {
        return busiId;
    }

    public void setBusiId(Long busiId) {
        this.busiId = busiId;
    }
    public Long getDeno() {
        return deno;
    }

    public void setDeno(Long deno) {
        this.deno = deno;
    }
    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }
    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
    public Integer getCondType() {
        return condType;
    }

    public void setCondType(Integer condType) {
        this.condType = condType;
    }
    public Integer getUseCond() {
        return useCond;
    }

    public void setUseCond(Integer useCond) {
        this.useCond = useCond;
    }
    public LocalDate getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDate startTime) {
        this.startTime = startTime;
    }
    public LocalDate getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDate endTime) {
        this.endTime = endTime;
    }
    public Integer getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(Integer maxNum) {
        this.maxNum = maxNum;
    }
    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "InfoVoucher{" +
            "id=" + id +
            ", busiType=" + busiType +
            ", busiId=" + busiId +
            ", deno=" + deno +
            ", category=" + category +
            ", skuId=" + skuId +
            ", condType=" + condType +
            ", useCond=" + useCond +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
            ", maxNum=" + maxNum +
            ", delFlag=" + delFlag +
        "}";
    }
}
